TableMaker Examples


Correct Formatting of Input Data


Here are some examples of input data and their corresponding tables. The correct format of the input data is very simple -- values for individual cells are separated by commas (or you can use tabs) and each line corresponds to a new row.


a,b
c,d
ab
cd

a,b,c,d
abcd

a,b,c,d
e,f,g,h
abcd
efgh

a,b
c,d
e,f
g,h
ab
cd
ef
gh

a,b,c
d,e,f
g,h,i
abc
def
ghi


Using Column Span and Row Span


Sometimes it's nice to have a table where a cell spans across multiple rows or columns. For example...

This cell spans across three columns
def

To use this feature, you need to provide a special code within your input data which tells TableMaker what to do. The code to use for spanning columns is (colspan=#) where "#" is a number corresponding to the number of columns you want to span. Likewise, the code for spanning rows is (rowspan=#). Alternatively, you can use (cs=#) or (rs=#) as shortcuts for (colspan=#) and (rowspan=#), respectively.

The code has to be placed immediately to the left of the value for a particular cell that you want to span. For example, if you want a cell containing the word "sleepy" to span across 4 columns, you would enter (cs=4)sleepy. Let's take a look at some tables, shall we.


(cs=3)a
b,c,d
a
bcd

a,(cs=2)b
c,d,e
ab
cde

(cs=2)a,(cs=2)b
c,d,e,f
ab
cdef

(rs=2)a,b,c
d,e
abc
de

a,(rs=2)b,c
d,e
abc
de

a,(cs=2)b
(rs=2)c,d,e
f,g
ab
cde
fg


Fine Tuning Tables for Netscape


Here are some example tables which demonstrate the additional attributes specific to Netscape. All of these tables should look identical in Mosaic, but will look wildly different in Netscape.


BORDER=3
JohnPaul
GeorgeRingo

BORDER=3, WIDTH=200
JohnPaul
GeorgeRingo

BORDER=3, WIDTH=50%
JohnPaul
GeorgeRingo

BORDER=1, HEIGHT=50
JohnPaul
GeorgeRingo

BORDER=1, HEIGHT=15% 
JohnPaul
GeorgeRingo

BORDER=1, CELLPADDING=10
JohnPaul
GeorgeRingo

BORDER=1, CELLSPACING=10
JohnPaul
GeorgeRingo

BORDER=3, WIDTH=50%, HEIGHT=15%, CELLPADDING=10, CELLSPACING=10
JohnPaul
GeorgeRingo


Go to...
Instructions | Examples | Resources


Copyright © 1995, 1996 by Sam Choukri
Send comments or suggestions to sam@pobox.com
Document update: January 21, 1996